/**
 * 测试人员接口测试用例入口
 *
 * Created by snowingsea on 2020/02/08.
 */

const Administrator = require('./../../models/administrator');

/**
 * Export model definition object.
 */
module.exports = describe('Test Tester', function () {
  let userTotalNumber = 0;
  const administrator = new Administrator();

  before(function (done) {
    administrator.login()
      .then(() => administrator.getUserTotalNumber())
      .then((totalNumber) => {
        userTotalNumber = totalNumber;
        done();
      })
      .catch(done);
  });
  after(function (done) {
    administrator.getUserTotalNumber()
      .then((totalNumber) => {
        totalNumber.should.be.eql(userTotalNumber);
        done();
      })
      .catch(done);
  });

  // require('./license-status.test');
  require('./compilation-options.test');
  require('./projects');
  require('./project-versions');
  require('./files');
  require('./file-elements');
  require('./functions');
  require('./tests');
  require('./tasks');
  require('./static-analyze');
  require('./integration-test/functions');
  require('./integration-test/project-versions');
  require('./integration-test/files');
  require('./ephemeral-data');
});
